package com.revenco.bi.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.revenco.bi.controller.basecontroller.AbstractUserAwareController;
import com.revenco.bi.service.TnOthtableMaintableRelaService;
import com.revenco.bi.service.TnPublicDemensionValueSelService;

/**
 * 
 * @author LingJun
 * @version $Revision:1.0.0, 2014年1月18日 上午11:22:06
 */
@Controller
public class TnOthtableMaintableRelaController extends
		AbstractUserAwareController {
	@Autowired
	TnOthtableMaintableRelaService tnOthtableMaintableRelaService;
	@Autowired
	TnPublicDemensionValueSelService tnPublicDemensionValueSelService;

	@RequestMapping(value = "/fetchDemensionData")
	@ResponseBody
	public String fetchDemensionData(@RequestParam("pvId") String pvId)
			throws Exception {
		return "";
	}

	@RequestMapping(value = "/getDemensionDataByColumnId")
	@ResponseBody
	public Map<String, String> getDemensionDataByColumnId(
			@RequestParam("columnId") String columnId) throws Exception {
		return tnOthtableMaintableRelaService.getDemensionDataByColumnId(columnId);
	}
}
